const http = require('http');
const exporess = require('express');
const ParseDashboard = require('parse-dashboard');
const Config = require('../config');

const dashboard = new ParseDashboard(Config.parseDashboard);

let app = exporess();

app.use(Config.parseDashboardLink, dashboard);

const port = Config.port;

const httpServer = http.createServer(app);
httpServer.listen(port, () => {
   console.log(`parse-dashboard server start, running on port: ${port}`);
});
